<script language="javascript" type="text/javascript" src="__PUBLIC__/js/My97DatePicker/WdatePicker.js"></script>
<div>
    <div class="form">
	   <dl>
        <dt>【护照资料】</dt>
        <dd>
        	<p style="margin: 2px 0px;">护照号：{$passportInfo.passport_code_mrz}</p>
			<p style="margin: 2px 0px;">姓名：{$passportInfo.username}</p>
			<p style="margin: 2px 0px;">联系手机：{$passportInfo.mobile}</p>
        	<p style="margin: 2px 0px;">快递单号：{$passportInfo.expresssingle}</p>
        </dd>
      </dl>
	  <dl>
        <dt>流转状态：</dt>
        <dd>
        	<if condition="$message['status'] eq 1">已完成<else />跟进中</if>
        </dd>
      </dl>
      <foreach name="messageDetail" item="v" >
      <dl>
        <dt>{$v.sendName}：</dt>
        <dd>
        	<p style="margin: 0px;">{$v.content}</p>
        	<p style="color: red;margin: 2px 0px;">{$v.sendTime}</p>
        </dd>
      </dl>
      </foreach>
      <if condition="$canWrite eq true">
      <form method='post' id="form_do" name="form_do" action="{:U(MODULE_NAME. '/Message/visaProcessDeal',array('id'=>$message['id']))}">
      <if condition="$message['status'] eq 1">
      <dl>
        <dt>疑难件原因：</dt>
        <dd>
        	<input name="result[]" type="checkbox" value="照片不合格"/>照片不合格
        	<input name="result[]" type="checkbox" value="个人资料表填写不详细"/>个人资料表填写不详细
        	<input name="result[]" type="checkbox" value="护照DT记录"/>护照DT记录
        	<input name="result[]" type="checkbox" value="送签前退件"/>送签前退件
        	<p class="red">(官网查询进度状态)</p>
        </dd>
      </dl>
      </if>
      <dl>
        <dt>发送对象：</dt>
        <dd>
        	<input type="radio" name="receiveGroupID" value="0" checked="checked"/>进度记录
			<input type="radio" name="receiveGroupID" value="25" />签证组 
			<input type="radio" name="receiveGroupID" value="17" />售后组 
			<input type="radio" name="receiveGroupID" value="18" />淘宝部
        </dd>
      </dl>
      <dl>
        <dt>发送内容：</dt>
        <dd>
		<textarea name="content" style="width: 450px;height: 80px;"></textarea>
        </dd>
      </dl>
      <dl>
        <dt></dt>
        <dd>
			<input type="submit" class="button-green" id="submit" value="发送">
        	<input type="button" onclick="goBack()" class="button-return" value="返回" />
        	<if condition="$canEnd eq true">
        	<input type="button" class="button-red" onclick="dealEnd({$message['id']})" value="完成流转">
        	</if>
        </dd>
      </dl>
      <else />
      <dl>
        <dt></dt>
        <dd>
        	<input type="button" onclick="goBack()" class="button-return" value="返回" />
        </dd>
      </if>
    </form>
    </div>
</div>
<script type="text/javascript">
function dealEnd(id)
{
	if(confirm("你是否完成该咨询单？") == true)
	{
	 	window.location.href = "{:U(MODULE_NAME. '/Message/visaProcessDealEnd',array('id'=>$message['id']))}";
	}
}
</script>
